﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Content.Master" Inherits="System.Web.Mvc.ViewPage<MethodWorx.CMS.Content.ContentItem>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Rename Content Item
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script language="javascript">
        $(document).ready(function () {
            $("#cancel").click(function () { window.parent.closeDialog() });
        });
    </script>
    <%using (Html.BeginForm())
      { %>
        <div class="formItem">
            <label>Current Name:</label>
            <%=Html.TextBox("CurrentName", Model.Name, new { @readonly="true", disabled="true"}) %>
        </div>
        <div class="formItem">
            <label>New Name:</label>
            <%=Html.TextBox("NewName") %>
        </div>
         <div class="formItem">
        <button>Rename</button>
        <button id="cancel" type="button">Cancel</button>
    </div>
    <%} %>

</asp:Content>
